<?php
$str = '中文';
$patten = '/[\x{4e00}-\x{9fa5}]/u';
preg_match($patten, $str, $match);
var_dump($match);